<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
		function calculateDaysFromBirth(birthDateString) {
		   
		    const birthDate = new Date(birthDateString);
	
		    if (isNaN(birthDate.getTime())) {
		        return "Invalid birth date format";
		    }
		
		    const currentDate = new Date();
		  
		    const millisecondsPerDay = 1000 * 60 * 60 * 24;
		    const days = Math.floor((currentDate - birthDate) / millisecondsPerDay);
		 
		    return days;
		}
		 
		
		
		</script>
	</body>
</html>
